package com.java.demo.data;

/**
 * @auther zhangwj
 * @date 2020/8/18 2:08 下午
 */
public class Demo4 {

    {
        System.out.println("代码块");
    }

    static {
        System.out.println("静态代码块");
    }

    static void A() {
        System.out.println("静态方法");
    }


    public static void main(String[] args) throws ClassNotFoundException {
        Class.forName("com.java.demo.data.Demo4");
        Demo4 demo4 = new Demo4();
        Demo4.A();
    }
}
